package com.zhbr.mvp.ui.activity;

import android.util.Log;

import com.zhbr.R;
import com.zhbr.entity.Account;
import com.zhbr.mvp.base.view.BaseActivity;
import com.zhbr.mvp.contract.AlterAccountContract;
import com.zhbr.mvp.presenter.AlterAccountPresenter;

public class AlterAccountActivity extends BaseActivity<AlterAccountPresenter> implements AlterAccountContract.View {

    @Override
    protected AlterAccountPresenter createPresenter() {
        return new AlterAccountPresenter();
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_alter_account;
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initData() {
        mPresenter.getAccountInfo();
    }


    @Override
    public void alterAccount(Account account) {

    }

    @Override
    public void getAccountInfoSuccess(Account account) {
        Log.d("Account", "getAccountInfoSuccess: "+account.getActnickname());
    }

    @Override
    public Void alterSuccess() {
        return null;
    }

}
